home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / CC_C / 0566.ZIP / CSH.DOC < prev    next >
Text File  |  1987-01-27  |  3KB  |  115 lines

  1. Author:    Paul D. Fox
  2. Date:    January 1987
  3.  
  4. Copyright (C) Paul Fox 1987
  5.  
  6. Title:    Documentation on csh.exe - C-shell interpreter.
  7.  
  8. This software is based on the Unix(TM) BSD C-shell command interpreter.
  9. This offers a much better command environment than the standard Unix
  10. Bourne shell, or MS-DOS.
  11.  
  12. This software is a shareware piece of code. The executable may
  13. be freely distributed. If you like the product any donations are
  14. gratefully accepted (10 pounds or more will do!). Please send to :
  15.  
  16.  
  17.     Paul Fox
  18.     7, Cromwell Court
  19.     Farrer Street
  20.       Kempston,
  21.         Bedford MK42 8JH
  22.  
  23. Donations accepted in dollars or UK pounds. Latter preferred.
  24.  
  25. The source to this software will also be made available. Please
  26. contact me via bix-mail for offers.
  27.  
  28. Features include:
  29.  
  30.     - command aliasing (very fast macros)
  31.     - history of commands.
  32.     - programmable batch files
  33.     - compatability with Unix C-shell,
  34.       except for limitations noted below.
  35.     - multi-line commands
  36.     - nested command scripts (subject to memory
  37.       limitations).
  38.  
  39. Features not yet implemented:
  40.  
  41.     - if/endif
  42.     - switch/case
  43.     - while
  44.     - job control
  45.     - conditional parameter substituion ( ${?-xx} )
  46.     - background processes.
  47.     - AND and OR connectives (&& and ||)
  48.  
  49. Builtin commands supported:
  50.  
  51.     repeat    - repeat command N times. Syntax
  52.           repeat n command ..
  53.     echo    - echo command line parameters including
  54.           wild card substitution.
  55.     cd    - change working directory
  56.     chdir
  57.     pwd    - print working directory
  58.     exit    - exit shell
  59.     set    - set local variable
  60.     history - display entire history or last N commands. Syntax
  61.           history [n]
  62.     unset    - unset local variable
  63.     alias    - alias command. Syntax:
  64.           alias name command_string_with_arguments,
  65.           eg
  66.             alias edit c:\bin\word @!*
  67.     unalias - delete alias definition
  68.     exec    - execute a command with arguments via exec -
  69.           instead of spawn().
  70.     setenv    - set environment variable
  71.     goto    - used in scripts for unconditional goto
  72.     foreach - looping construct, eg
  73.             foreach i (\bin\*\*.com)
  74.                 echo $i
  75.             end
  76.     end    - terminate foreach command
  77.     @    - synonym for let
  78.     let    - numeric assignment. Very simple expression
  79.           parser. Eg
  80.             let i = $j / 3
  81.     ver    - Print current csh version information
  82.     path    - print current path
  83.     source    - read script file locally.
  84.     .    - synonym for source.
  85.  
  86. Builtin in variables:
  87.  
  88. path    Current search path for programs
  89. cwd    current working directory
  90. prompt    command prompt
  91. drive    disk drive
  92. history    number of commands to keep in history list
  93. ignoreeof    allow ^D to exit csh if not set
  94. -------------
  95.  
  96. On start-up, csh reads the file \shell.ini (supplied) to 
  97. initialise your environment. This is similar to autoexec.bat
  98. except it is read every time csh.exe is startup up.
  99.  
  100. -------------
  101.  
  102. Please note: the '@' character is the magic escape character.
  103. On Unix the backslash is used, but we cant use that cos MS-DOS
  104. wants to use these for file-names.
  105.  
  106. -------------
  107.  
  108. Any questions or misunderstandings, please bix-mail me. I may try
  109. to write some more complete documentation as time goes by.
  110.  
  111. This project was started as a quick and dirty one-afternoon long 
  112. program, which I have extended over the last 6 months. I now cannot
  113. survive without it.
  114.  
  115.